<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Projeto Interdiciplinar
 * Gurpo 1 - Primeira turma do curso de Aux Info da Escom Brasília
 * Criado em: 18/11/2012, 15:31:24
 * Description of m_status
 *
 *  * @author 2 Sgt Lemoel, 
 *         3 Sgt Albuquerque,
 *         3 Sgt Azambuja,
 *         3 Fabio Moura
 * @since 11/2012
 * @version 1
 */
class M_Status extends CI_Model {

    public function cmbStatus($statusId = NULL) {

        $status = array( 0 => 'Inativo', 1 => 'Ativo');
        
        $comboStatus = null;
        
        foreach ($status as $key => $value) {
            $selected = ($key === $statusId) ? "selected='selected'" : '';
            $comboStatus .= "<option $selected value='$key'>$value</option>";
        }
        return $comboStatus;
    }
}
?>